<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link href="../../css/mui.min.css" rel="stylesheet" />
	</head>

	<body>
		<script src="../../js/mui.min.js"></script>
		<script type="text/javascript">
			mui.init({
				swipeBack: true //启用右滑关闭功能
			});
		</script>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
		    <h1 class="mui-title">用户搜索</h1>
		</header>
		<div class="mui-content">
			<form id="userListForm" class="mui-input-group">
				<div class="mui-input-row">
				    <input id="uid" type="text" placeholder="用户ID">
				</div>
				
				<div class="mui-input-row">
				    <input id="nickName" type="text" placeholder="昵称">
				</div>
			</form>
			
			<div class="mui-content-padded">
				<button id="submitBtn" class="mui-btn mui-btn-block mui-btn-primary">查询</button>
			</div>
		</div>
		
		<script type="text/javascript" src="../../js/support.js" ></script>
		<script>
			document.getElementById("submitBtn").addEventListener('tap', function() {
				var userId = document.getElementById('uid').value;
				var nickName = document.getElementById('nickName').value;
				if((userId == null || "" == userId) && (nickName == null || nickName == "")) {
					return mui.toast('请先输入查询条件');
				}
				wea.href("userSearchResult.html", "fish", "GetUser", {userId: userId, nickName: nickName});
			});
		</script>
	</body>

</html>